# It's strongly recommended to use the virtual environment)
pip3 install baseproxy
# python3.10 will raise an AttributeError if the version of pyOpenSSL(downloaded with baseproxy) is too low. Reinstalling the latest version will fix it.
pip3 uninstall pyOpenSSL
pip3 install pyOpenSSL
# run
python3 Sophos-poc.py
docker pull keithdockerhub/cve-2022-1040:latest # or build yourself
docker run -it -p 8788:8788 keithdockerhub/cve-2022-1040:latest
- Make sure your browser use the http proxy: http://127.0.0.1:8788.
- Fill in username and password with literally any contents.(It doesn't matter)
- Click login.
The principle is the same as the burpsuite.
It sets up a https mitm(man in the middle) and change the http body in a specific post request then we can get access to the web admin of Sophos Firewall without authentication.
Please do not use it for illegal purposes.
https://github.com/qiyeboy/BaseProxy
https://github.com/APTIRAN/CVE-2022-1040